From: Giovanni Campagna Date: Mon, 10 Sep 2012 09:34:49 +0000 (+0200) Subject: Hide the user menu in the GDM greeter lock screen X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5889 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=785be2f327762fb473629dd2b99e286d0694d644;p=gnome-shell.git Hide the user menu in the GDM greeter lock screen https://bugzilla.gnome.org/show_bug.cgi?id=683705 --- diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js index 14e1ff1f8..082c0f632 100644 --- a/js/ui/sessionMode.js +++ b/js/ui/sessionMode.js @@ -48,6 +48,7 @@ const _modes = { 'lock-screen': { isLocked: true, + isGreeter: undefined, unlockDialog: undefined, components: ['networkAgent', 'polkitAgent', 'telepathyClient'], panel: { diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index bb3e1a5d9..fcac6cdb7 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -577,6 +577,8 @@ const UserMenuButton = new Lang.Class({ }, _sessionUpdated: function() { + this.actor.visible = !Main.sessionMode.isGreeter; + let allowSettings = Main.sessionMode.allowSettings; this._statusChooser.setSensitive(allowSettings); this._systemSettings.visible = allowSettings;